package com.woniuxy.common.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ShopMerchantCurrentAccountExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ShopMerchantCurrentAccountExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCurrentIdIsNull() {
            addCriterion("current_id is null");
            return (Criteria) this;
        }

        public Criteria andCurrentIdIsNotNull() {
            addCriterion("current_id is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentIdEqualTo(String value) {
            addCriterion("current_id =", value, "currentId");
            return (Criteria) this;
        }

        public Criteria andCurrentIdNotEqualTo(String value) {
            addCriterion("current_id <>", value, "currentId");
            return (Criteria) this;
        }

        public Criteria andCurrentIdGreaterThan(String value) {
            addCriterion("current_id >", value, "currentId");
            return (Criteria) this;
        }

        public Criteria andCurrentIdGreaterThanOrEqualTo(String value) {
            addCriterion("current_id >=", value, "currentId");
            return (Criteria) this;
        }

        public Criteria andCurrentIdLessThan(String value) {
            addCriterion("current_id <", value, "currentId");
            return (Criteria) this;
        }

        public Criteria andCurrentIdLessThanOrEqualTo(String value) {
            addCriterion("current_id <=", value, "currentId");
            return (Criteria) this;
        }

        public Criteria andCurrentIdLike(String value) {
            addCriterion("current_id like", value, "currentId");
            return (Criteria) this;
        }

        public Criteria andCurrentIdNotLike(String value) {
            addCriterion("current_id not like", value, "currentId");
            return (Criteria) this;
        }

        public Criteria andCurrentIdIn(List<String> values) {
            addCriterion("current_id in", values, "currentId");
            return (Criteria) this;
        }

        public Criteria andCurrentIdNotIn(List<String> values) {
            addCriterion("current_id not in", values, "currentId");
            return (Criteria) this;
        }

        public Criteria andCurrentIdBetween(String value1, String value2) {
            addCriterion("current_id between", value1, value2, "currentId");
            return (Criteria) this;
        }

        public Criteria andCurrentIdNotBetween(String value1, String value2) {
            addCriterion("current_id not between", value1, value2, "currentId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdIsNull() {
            addCriterion("merchant_id is null");
            return (Criteria) this;
        }

        public Criteria andMerchantIdIsNotNull() {
            addCriterion("merchant_id is not null");
            return (Criteria) this;
        }

        public Criteria andMerchantIdEqualTo(String value) {
            addCriterion("merchant_id =", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdNotEqualTo(String value) {
            addCriterion("merchant_id <>", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdGreaterThan(String value) {
            addCriterion("merchant_id >", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdGreaterThanOrEqualTo(String value) {
            addCriterion("merchant_id >=", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdLessThan(String value) {
            addCriterion("merchant_id <", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdLessThanOrEqualTo(String value) {
            addCriterion("merchant_id <=", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdLike(String value) {
            addCriterion("merchant_id like", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdNotLike(String value) {
            addCriterion("merchant_id not like", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdIn(List<String> values) {
            addCriterion("merchant_id in", values, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdNotIn(List<String> values) {
            addCriterion("merchant_id not in", values, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdBetween(String value1, String value2) {
            addCriterion("merchant_id between", value1, value2, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdNotBetween(String value1, String value2) {
            addCriterion("merchant_id not between", value1, value2, "merchantId");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeIsNull() {
            addCriterion("current_type is null");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeIsNotNull() {
            addCriterion("current_type is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeEqualTo(String value) {
            addCriterion("current_type =", value, "currentType");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeNotEqualTo(String value) {
            addCriterion("current_type <>", value, "currentType");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeGreaterThan(String value) {
            addCriterion("current_type >", value, "currentType");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeGreaterThanOrEqualTo(String value) {
            addCriterion("current_type >=", value, "currentType");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeLessThan(String value) {
            addCriterion("current_type <", value, "currentType");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeLessThanOrEqualTo(String value) {
            addCriterion("current_type <=", value, "currentType");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeLike(String value) {
            addCriterion("current_type like", value, "currentType");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeNotLike(String value) {
            addCriterion("current_type not like", value, "currentType");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeIn(List<String> values) {
            addCriterion("current_type in", values, "currentType");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeNotIn(List<String> values) {
            addCriterion("current_type not in", values, "currentType");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeBetween(String value1, String value2) {
            addCriterion("current_type between", value1, value2, "currentType");
            return (Criteria) this;
        }

        public Criteria andCurrentTypeNotBetween(String value1, String value2) {
            addCriterion("current_type not between", value1, value2, "currentType");
            return (Criteria) this;
        }

        public Criteria andNumberIsNull() {
            addCriterion("number is null");
            return (Criteria) this;
        }

        public Criteria andNumberIsNotNull() {
            addCriterion("number is not null");
            return (Criteria) this;
        }

        public Criteria andNumberEqualTo(Long value) {
            addCriterion("number =", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotEqualTo(Long value) {
            addCriterion("number <>", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThan(Long value) {
            addCriterion("number >", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThanOrEqualTo(Long value) {
            addCriterion("number >=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThan(Long value) {
            addCriterion("number <", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThanOrEqualTo(Long value) {
            addCriterion("number <=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberIn(List<Long> values) {
            addCriterion("number in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotIn(List<Long> values) {
            addCriterion("number not in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberBetween(Long value1, Long value2) {
            addCriterion("number between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotBetween(Long value1, Long value2) {
            addCriterion("number not between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andCurrDateIsNull() {
            addCriterion("curr_date is null");
            return (Criteria) this;
        }

        public Criteria andCurrDateIsNotNull() {
            addCriterion("curr_date is not null");
            return (Criteria) this;
        }

        public Criteria andCurrDateEqualTo(Date value) {
            addCriterion("curr_date =", value, "currDate");
            return (Criteria) this;
        }

        public Criteria andCurrDateNotEqualTo(Date value) {
            addCriterion("curr_date <>", value, "currDate");
            return (Criteria) this;
        }

        public Criteria andCurrDateGreaterThan(Date value) {
            addCriterion("curr_date >", value, "currDate");
            return (Criteria) this;
        }

        public Criteria andCurrDateGreaterThanOrEqualTo(Date value) {
            addCriterion("curr_date >=", value, "currDate");
            return (Criteria) this;
        }

        public Criteria andCurrDateLessThan(Date value) {
            addCriterion("curr_date <", value, "currDate");
            return (Criteria) this;
        }

        public Criteria andCurrDateLessThanOrEqualTo(Date value) {
            addCriterion("curr_date <=", value, "currDate");
            return (Criteria) this;
        }

        public Criteria andCurrDateIn(List<Date> values) {
            addCriterion("curr_date in", values, "currDate");
            return (Criteria) this;
        }

        public Criteria andCurrDateNotIn(List<Date> values) {
            addCriterion("curr_date not in", values, "currDate");
            return (Criteria) this;
        }

        public Criteria andCurrDateBetween(Date value1, Date value2) {
            addCriterion("curr_date between", value1, value2, "currDate");
            return (Criteria) this;
        }

        public Criteria andCurrDateNotBetween(Date value1, Date value2) {
            addCriterion("curr_date not between", value1, value2, "currDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}